# 方法1

print([i for i in range(1, 101) if i % 2 == 1])
print([i for i in range(1, 101, 2)])

# 方法2
list1 = []
for i in range(1, 101, 2):
    list1.append(i)
print(list1)


class singleton:
    __instance = None

    def __new__(cls, *args, **kwargs):
        if not cls.__instance:
            cls.__instance = super().__new__(cls)
            return cls.__instance
